Ext.define('AM.view.test.GridList' ,{
    extend: 'Ext.grid.Panel',
    alias: 'widget.testgridlist',

    title: 'Test List',
    store: 'Users',
    requires: ['Ext.toolbar.Toolbar'],

	split : true,
	
    dockedItems: [{
        xtype: 'toolbar',
        items: [{
            text:'添加',
            tooltip:'Add',
            iconCls:'application_add',
            action: 'addtest'
        },{
            text:'删除',
            tooltip:'Del',
            iconCls:'application_delete',
            action: 'deltest'
        },{
            text:'修改',
            tooltip:'Edit',
            iconCls:'application_edit',
            action: 'edittest'
        },{
        	text:'查询',
        	tooltip:'query',
        	iconCls:'application_form_magnify',
        	action:'querytest'
        }]
    }],
	
    initComponent: function() {
    	console.log('testgridlist initComponent');
        this.columns = [
            Ext.create('Ext.grid.RowNumberer'),
            {header: 'Name',  dataIndex: 'name',  flex: 1}
        ];

        this.callParent(arguments);
    }
});